package structures;
import java.awt.Color;
import java.awt.Component;

import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;


public class KvItemRenderer extends JLabel implements TableCellRenderer
{
	private static final long serialVersionUID = 1L;
	    
	    public KvItemRenderer() 
	    {
	        System.out.println("kvItemREnderer created");
	    }
	    
	@Override
	public Component getTableCellRendererComponent(JTable table, Object kvItem,
			boolean isSelected, boolean hasFocus, int row, int column) 
	{
		System.out.println("renderers get table cell renderer component called");
		KvItem item = (KvItem)kvItem;
		this.setText(item.getValue());
		return this;
	}

}
